<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<table border=1 width="80%" align="center">
	<tr>
		<th>jewelry_id</th>
		<th>jewelry_name</th>
		<th>user_id</th>
		<th>status</th>
		<th>amount</th>
		<th>comment</th>
		<th>operate</th>
	</tr>

	<s:iterator value="jewelryList" var="var">
		<tr>
			<td><s:property value="#var.jewelry_id"/></td>
			<td><s:property value="#var.jewelry_name"/></td>
			<td><s:property value="#var.user_id"/></td>
			<td><s:property value="#var.status"/></td>
			<td><s:property value="#var.amount"/></td>
			<td><s:property value="#var.comment"/></td>
			<td>
				<input value="修改" type="button" onclick="location='test!update.do?jewelry.jewelry_id=${var.jewelry_id}'" />
				<input value="删除" type="button" onclick="location='test!delete.do?jewelry.jewelry_id=${var.jewelry_id}'" />
			</td>
		</tr>
	</s:iterator>
</table>

<table border=0 width="80%" align="center">
<tr><td align="center">
	<input type="button" value="新增" onclick="location='test!add.do'" />
</td></tr>
</table>
